package com.cloudkinto.service.user.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author zhangyy
 * @date 2020/4/18 16:58
 * @description:
 */
@Data
public class UserBuildReq {
    /**
     * 账号
     */
    @NotBlank(message = "请输入账号")
    @Length(min = 6,max = 20,message = "用账号长度请设置在1-20之间")
    private String userAccount;

    /**
     * 用户名
     */
    @NotNull(message = "请输入用户名")
    @Length(min = 1,max = 20,message = "用户名长度请设置在1-20之间")
    private String userName;

    /**
     * 密码
     */
    @NotBlank(message = "请输入密码")
    @Length(min = 6,max = 20 ,message = "密码长度请设置在6-20之间")
    private String userPassword;

    @NotNull(message = "请选择角色")
    private Long roleId;

    private Long shopId;

    private String userMail;

    @NotBlank(message = "请填写电话号码")
    private String userPhone;
}
